package com.sm.honkon.data.bean

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize

/**
 * @description
 * @author csw
 * @date 2021-05-03
 */
@Parcelize
@Entity(tableName = "handler", indices = [Index(value = ["workId"], unique = true)])
data class HandlerEntity(
    //序号
    @PrimaryKey(autoGenerate = false) var uid: Long,
    var workId: String = "",
    var name: String = "",
    var sex: Int = 0,//0 男， 1 女
    var age: String = "",
    var medical_official: String = "",
    var mobile: String = "",
    var crateTime: String = "",
    var password: String = "",
    var status: Int = 0
) : Parcelable {
    val sexShow
        get() = if (sex >0) "女" else "男"
    fun uidShow():String{
        return uid.toString()
    }

}